/**
 * 
 */
package com.cci.kangdao.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: wang ying
 * @company: Persagy Technology Co.,Ltd
 * @since: 2022年1月17日 下午3:11:09
 * @version: V1.0
 **/
@Configuration
public class EmailConfiguration {
	
	@Value("${mail.host}")
	private String host;
	
	@Value("${mail.port}")
	private String port;
	
	@Value("${mail.username}")
	private String username;
	
	@Value("${mail.password}")
	private String password;
	
	@Value("${mail.timeout}")
	private String timeout;
	
	@Value("${mail.from}")
	private String from;
	
	@Value("${mail.starttls.enable}")
	private String starttlsEnable;	

	
	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTimeout() {
		return timeout;
	}

	public void setTimeout(String timeout) {
		this.timeout = timeout;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getStarttlsEnable() {
		return starttlsEnable;
	}

	public void setStarttlsEnable(String starttlsEnable) {
		this.starttlsEnable = starttlsEnable;
	}


    @Override
    public String toString() {
        return "EmailConfiguration{" +
                "host='" + host + '\'' +
                ", port='" + port + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", timeout='" + timeout + '\'' +
                ", from='" + from + '\'' +
                ", starttlsEnable='" + starttlsEnable + '\'' +
                '}';
    }
}
